/**
 * api配置 v1.0.3
 * @Author: Jie.
 * @Date: 2020-02-01
 */
module.exports = {
	clound:{
		/****************************************
		*				系统级api				*
		* ***************************************/
		"login":"/bsys/loginAsAction",//登录
		"initpl":"/bsys/initPortalInfo",//初始化上下文
		"logout":"/bsys/logout",//退出
		"changePassword":"/bsys/system/changePassword",
		"currentPhoto":"/bsys/system/user/photo/current",//获取当前人头像
		"downloadUserPhoto":"/bsys/system/user/userPhotoDownloadAction",//头像下载
		"uploadUserPhoto":"/bsys/system/user/photoUploadAction" ,//头像上传
		"queryPerson":"/bsys/org/queryPersonByIdAction",
		"savePerson":"/bsys/org/updatePerson",//保存人员数据
		/****************************************
		*				文档中心api				*
		* ***************************************/
		"uploadFile":"/zuul/bsys/doc/center/upload",		//文件上传
		"downloadFile":"/bsys/document/docDownloadAction",	//文件下载
		/****************************************
		*				 流程相关				*
		* ***************************************/
		"queryTaskId":"/bsys/flow/taskQueryByFlowIDAction",
		"updateFlowRead":"/bsys/flow/updateReadingSignAction",
		"flowNext":"/bsys/flow/flowoutQueryAction",
		"flowOut":"/bsys/flow/flowoutAction",
		"flowBackQuery":"/bsys/flow/flowBackQueryAction",
		"flowBack":"/bsys/flow/flowBackAction",
		"flowOpinionsQuery":"/bsys/flow/dealerProcessQueryAction",
		"chartView":"/bsys/flow/dialogs/flowProcessChartView.html" //流程图地址
	},
	old:{
		"login":"/loginAsAction",
		"initpl":"/initPortalInfo",
		"logout":"/as/logout",
		"changePassword":"/newPortal/opm/person/changePassword",
		"downloadUserPhoto":"/system/user/userPhotoDownloadAction",
		"uploadUserPhoto":"/system/user/photoUploadAction",
		"queryPerson":"/org/queryPersonByIdAction",
		"savePerson":"/org/savePersonDataAction",
		/****************************************
		*				文档中心api				*
		* ***************************************/
		"uploadFile":"/document/server/uploadTempAction",
		"downloadFile":"/document/docDownloadAction",
		/****************************************
		*				 流程相关				*
		* ***************************************/
		"queryTaskId":"/flow/taskQueryByFlowIDAction",
		"updateFlowRead":"/flow/updateReadingSignAction",
		"flowNext":"/flow/flowoutQueryAction",
		"flowOut":"/flow/flowoutAction",
		"flowBackQuery":"/flow/flowBackQueryAction",
		"flowBack":"/flow/flowBackAction",
		"flowOpinionsQuery":"/flow/dealerProcessQueryAction",
		"chartView":"/system/flow/dialogs/flowProcessChartView.html" //流程图地址
	},
	get(name){
		if(!name) return ""
		if(uni.p9version=="clound"){
			return this.clound[name]
		}else {
			return this.old[name]
		}
	}
}